all: MatrixVectorRead.c MatrixVectorRead.h Main.cpp
	mpicc -O3 -msse3 -c MatrixVectorRead.c
	mpicxx -O3 -msse3 -I${TACC_PAPI_INC} -c Main.cpp
	mpicxx Main.o -Wl,-rpath,${TACC_PAPI_LIB} -L${TACC_PAPI_LIB} -lpapi MatrixVectorRead.o -o mult

clean:
	rm *.o mult result.mm
